﻿using GalaSoft.MvvmLight;
using System;

namespace DocBot.Objects
{
	public class Message : ObservableObject
	{
		DateTime _time;
		String _message;
		MessageType _type;

		public MessageType Type
		{
			get { return _type; }
			set { _type = value; }
		}

		public DateTime Time
		{
			get { return _time; }
			set { _time = value; }
		}

		public String Information
		{
			get { return _message; }
			set { _message = value; }
		}

		public Message(String _message, MessageType _type)
		{
			Type = _type;
			Information = _message;
			Time = DateTime.Now;
		}

		public Message(String _message)
		{
			Type = MessageType.Log;
			Information = _message;
			Time = DateTime.Now;
		}

		public Message()
		{
			Type = MessageType.Log;
			Time = DateTime.Now;
		}
	}
}
